#include "info.h"
#include "ui_info.h"

Info::Info(QWidget *parent): QWidget(parent), ui(new Ui::Info)
{
    ui->setupUi(this);
}

Info::~Info()
{
    delete ui;
}

void Info::dealInfoMessage(const QString msg)
{
    ui->message->insertPlainText(msg);
    ui->message->moveCursor(QTextCursor::End);
}

void Info::dealClearInfoMessage()
{
    ui->message->setText("");
}
